package com.situation.mapper;

import com.situation.pojo.DO.TbDepartment;
import com.situation.pojo.DO.TbImage;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author TaoMinghui
 * @create 2021-12-08 11:38
 */
@Mapper
@Component
public interface TbImageMapper {

    /**
     * 添加图片到tb_image
     * @param tbImage
     * @return
     */
    int addTbImage(TbImage tbImage);

    /**
     * 分页模糊查询附件列表
     * @param tbImage
     * @return
     */
    List<TbImage> findImageListFenYeMoHu(TbImage tbImage);

    /**
     * 通过id查找图片路径
     * @param id
     * @return
     */
    String findPathById(int id);

    /**
     * 通过id删除一个附件图片
     * @param id
     * @return
     */
    int deleteImageById(int id);

}
